package net.trustie.pipeline;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import core.PageModelPipeline;
import net.trustie.dao.Codeproject_Dao;
import net.trustie.model.codeproject_Model;
import us.codecraft.webmagic.Task;

@Component("codeproject_pipeline")
public class Codeproject_pipeline implements PageModelPipeline<codeproject_Model>{
	@Resource
	private Codeproject_Dao codeproject_Dao;
	
	@Override
	public void process(codeproject_Model cModel, Task task) {
		codeproject_Dao.add(cModel);
	}
}
